
import { DAILY_SET_DATA } from './../action/actionType';

export let daily = (state = {
    dailyData: null
}, action) => {
    let { type } = action;
    let newState = { ...state };
    switch (type) {
        case DAILY_SET_DATA:
            newState.dailyData = action.obj;
            return newState
            break;
        default:
            return newState
            break;
    }
}